<html>
<head>
   <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
   <meta name="viewport" content="width=device-width, initial-scale=1"/>
 </head>
   <body>
	{% include "nav.html" %}
      <div align="center">
       {% ifnotequal keyCount expectedKeyCount  %}
               <h3> *** Unable to find Key Statistics for  {{ ticker }} ***</h3>
                <h3> *** keyCount=  {{ keyCount }}, expectedKeyCount= {{ expectedKeyCount }} ***</h3>
        {% else %}
              <h3> The result for {{ tickerName }}  at {{ price }} is {{ recommendation }} for {{ configType }}</h3>
              {% include "disclaimer.html" %}
              
                <img src=http://www.google.com/finance/chart?q={{ ticker }}&tlf=12 alt="Chart for {{ ticker }}"/>
                
                <table id="box-table-a" summary="Summary">
                <thead>
                    <tr>
                        <th scope="col">Name</th>
                        <th scope="col">Criteria Pass/Fail</th>
                        <th scope="col">Actual Value</th>
                        <th scope="col">Optimal Value</th>
                        <th scope="col">Comments</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>Price to Earnings</td>
                        <td>{{ isPeOk }}</td>
                        <td>{{ pe }} </td>
                        <td>{{ optimalPeRatio }}</td>
                        <td>Actual should be below the Optimal value</td>
                    </tr>
                    <tr>
                        <td>Price to Earnings Growth Ratio</td>
                        <td>{{ isPegOk }}</td>
                        <td>{{ pegRatio }}</td>
                        <td>{{ optimalPegRatio }}</td>
                        <td>Actual should be below the Optimal value</td>
                    </tr>
                    <tr>
                        <td>Debt to Equity Ratio</td>
                        <td>{{ isDebtOk }}</td>
                        <td>{{ debtToEquity }}</td>
                        <td>{{ optimalDebtToEquity }}</td>
                        <td>Debt is low if actual is  less than Optimal</td>
                    </tr>
                    <tr>
                        <td>Quarterly Revenue Growth</td>
                        <td>{{ isQRevGrowthOk }}</td>
                        <td>{{ qRevGrowth }}</td>
                        <td>{{ optimalQRevGrowth }}</td>
                        <td>Quarterly Revenue Growth should be higher than the Optimal</td>
                    </tr>
                    <tr>
                        <td>Dividend Yield</td>
                        <td>{{ isDivYieldOk }}</td>
                        <td>{{ divYield }}</td>
                        <td>{{ optimalYield }}</td>
                        <td>Is Yield High? If optimal yield is configured to 0, then ignores the yield</td>
                    </tr>
                    <tr>
                        <td>Beta</td>
                        <td>Not Tested</td>
                        <td>{{ beta }}</td>
                        <td>{{ optimalBeta }}</td>
                        <td>Indicates how volatile a stock is</td>
                    </tr>
                      <tr>
                        <td>50 Day Moving Average</td>
                        <td>Not Tested</td>
                        <td>{{ fiftyDayMovAvg }}</td>
                        <td>None </td>
                        <td>50 Day Moving Average </td>
                    </tr>
                      <tr>
                        <td>200 Day Moving Average</td>
                        <td>Not Tested</td>
                        <td>{{ twoHundredDayMovAvg }}</td>
                        <td>None</td>
                        <td>200 Day Moving Average</td>
                    </tr>
                </tbody>
                </table>      
    {% endifnotequal %}
    
<div>
       <ul>
        <li> <a href={{link_0}}> {{ title_0}} </a></li>
	  <li> <a href={{link_1}}> {{ title_1}} </a></li>
 	  <li> <a href={{link_2}}> {{ title_2}} </a></li>
 	  <li> <a href={{link_3}}> {{ title_3}} </a></li>
 	  <li> <a href={{link_4}}> {{ title_4}} </a></li>
	<ul>
</div>
<br>

</body> 
 </html>
